/**
 * @Author Fish Paradise
 * @Description
 * @Date 2019/1/30  15:34
 **/
public class Test {
    public static void main(String[] args) {
        Problem problem = new Problem(10);
        Problem problem1 = new Problem(60);
        Problem problem2 = new Problem(120);
        Problem problem3 = new Problem(1000);

        Method methodA = new MethodA("方法A");
        Method methodB = new MethodB("方法B");
        Method methodC = new MethodC("方法C");

        methodA.setNext(methodB).setNext(methodC);

        methodA.support(problem);
        System.out.println("****************");
        methodA.support(problem1);
        System.out.println("****************");
        methodA.support(problem2);
        System.out.println("****************");
        methodA.support(problem3);
    }
}
